﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.SessionState;
using SES.CMS.DO;
using SES.CMS.BL;

namespace SES.CMS.Module
{
    public partial class ucSanPhamMoi : System.Web.UI.UserControl
    {
        ShopingCart vpp = new ShopingCart();

        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
                loadNew();
        }

        public void loadNew()
        {
            rptSanPhamMoi.DataSource = new cmsSanPhamBL().SelectAllNew(0);
            rptSanPhamMoi.DataBind();
        }
        protected string FriendlyUrl(string strTitle)
        {
            return Ultility.Change_AV(strTitle);
        }
        //public cmsGioHangDO init()
        //{
        //    cmsGioHangDO obj = new cmsGioHangDO();
        //    if (Session["ClientLoginID"] == null)
        //        obj.ClientLoginID = 0;
        //    else
        //        obj.ClientLoginID = int.Parse(Session["ClientLoginID"].ToString());
        //    obj.NgayDatHang = Convert.ToDateTime(DateTime.Now.ToString());
        //    obj.NgayGiaoHang = Convert.ToDateTime(DateTime.Now.ToString());
        //    obj.SoLuong = 1;
        //    obj.XuLy = false;
        //    return obj;
        //}
      
    }
}